﻿/*
 * @autor: hectorea
 * @date: 11/08/2012
 * @programming interview 4
 * 
 */

using System;

namespace IsPalindrome
{
    /// <summary>
    /// Programming Interview 4: Write a method which verify if a given string is a palindrome.
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            string input = string.Empty;

            do
            {
                Console.Clear();

                Console.Write("Type a string:");
                input = Console.ReadLine();

                Console.WriteLine("The string {0} is palindrome? {1}", input, input.IsPalindrome() ? "YES" : "NO");

                Console.Write("Please type any key to continue o [X] to exit: ");
                input = Console.ReadLine().ToUpper();

            } while (input != "X");
        }
    }
}
